package com.eastjet.maintenance.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;
import lombok.Data;

/**
 * 审核管理表

 * @TableName device_audits
 */
@TableName(value ="device_audits")
@Data
public class DeviceAudits implements Serializable {
    /**
     * 审核管理编号
     */
    @TableId(type = IdType.AUTO)
    private Integer auditsId;

    /**
     * 关联审核编号
     */
    private String code;

    /**
     * 审核管理标题
     */
    private String auditsTitle;

    /**
     * 审核管理范围
     */
    private String auditsRange;

    /**
     * 审批流程
     */
    private String auditsProcess;

    /**
     * 审核人
     */
    private String reviewers;

    /**
     * 操作时间
     */
    private Date auditsTime;

    /**
     * 创建人
     */
    private String insertPerson;

    /**
     * 创建时间
     */
    private Date insertTime;

    /**
     * 更新人
     */
    private String updatePerson;

    /**
     * 更新时间
     */
    private Date updateTime;

    /**
     * 逻辑删除
     */
    private Integer isDelete;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        DeviceAudits other = (DeviceAudits) that;
        return (this.getAuditsId() == null ? other.getAuditsId() == null : this.getAuditsId().equals(other.getAuditsId()))
            && (this.getCode() == null ? other.getCode() == null : this.getCode().equals(other.getCode()))
            && (this.getAuditsTitle() == null ? other.getAuditsTitle() == null : this.getAuditsTitle().equals(other.getAuditsTitle()))
            && (this.getAuditsRange() == null ? other.getAuditsRange() == null : this.getAuditsRange().equals(other.getAuditsRange()))
            && (this.getAuditsProcess() == null ? other.getAuditsProcess() == null : this.getAuditsProcess().equals(other.getAuditsProcess()))
            && (this.getReviewers() == null ? other.getReviewers() == null : this.getReviewers().equals(other.getReviewers()))
            && (this.getAuditsTime() == null ? other.getAuditsTime() == null : this.getAuditsTime().equals(other.getAuditsTime()))
            && (this.getInsertPerson() == null ? other.getInsertPerson() == null : this.getInsertPerson().equals(other.getInsertPerson()))
            && (this.getInsertTime() == null ? other.getInsertTime() == null : this.getInsertTime().equals(other.getInsertTime()))
            && (this.getUpdatePerson() == null ? other.getUpdatePerson() == null : this.getUpdatePerson().equals(other.getUpdatePerson()))
            && (this.getUpdateTime() == null ? other.getUpdateTime() == null : this.getUpdateTime().equals(other.getUpdateTime()))
            && (this.getIsDelete() == null ? other.getIsDelete() == null : this.getIsDelete().equals(other.getIsDelete()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getAuditsId() == null) ? 0 : getAuditsId().hashCode());
        result = prime * result + ((getCode() == null) ? 0 : getCode().hashCode());
        result = prime * result + ((getAuditsTitle() == null) ? 0 : getAuditsTitle().hashCode());
        result = prime * result + ((getAuditsRange() == null) ? 0 : getAuditsRange().hashCode());
        result = prime * result + ((getAuditsProcess() == null) ? 0 : getAuditsProcess().hashCode());
        result = prime * result + ((getReviewers() == null) ? 0 : getReviewers().hashCode());
        result = prime * result + ((getAuditsTime() == null) ? 0 : getAuditsTime().hashCode());
        result = prime * result + ((getInsertPerson() == null) ? 0 : getInsertPerson().hashCode());
        result = prime * result + ((getInsertTime() == null) ? 0 : getInsertTime().hashCode());
        result = prime * result + ((getUpdatePerson() == null) ? 0 : getUpdatePerson().hashCode());
        result = prime * result + ((getUpdateTime() == null) ? 0 : getUpdateTime().hashCode());
        result = prime * result + ((getIsDelete() == null) ? 0 : getIsDelete().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", auditsId=").append(auditsId);
        sb.append(", code=").append(code);
        sb.append(", auditsTitle=").append(auditsTitle);
        sb.append(", auditsRange=").append(auditsRange);
        sb.append(", auditsProcess=").append(auditsProcess);
        sb.append(", reviewers=").append(reviewers);
        sb.append(", auditsTime=").append(auditsTime);
        sb.append(", insertPerson=").append(insertPerson);
        sb.append(", insertTime=").append(insertTime);
        sb.append(", updatePerson=").append(updatePerson);
        sb.append(", updateTime=").append(updateTime);
        sb.append(", isDelete=").append(isDelete);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}